﻿using System;
namespace PBOffice.Model
{
	/// <summary>
    /// News:新闻表(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class News
	{
		public News()
		{}
		#region Model
		private int _newsid;
		private string _newstitle;
		private string _newscontent;
		private int _typeid;
		private bool _istop= false;
		private bool _iscommend= false;
		private int _hits=0;
		private DateTime _newsdate= DateTime.Now;
		private string _stfcode;
		/// <summary>
        /// 新闻Id
		/// </summary>
		public int NewsId
		{
			set{ _newsid=value;}
			get{return _newsid;}
		}
		/// <summary>
        /// 新闻标题
		/// </summary>
		public string NewsTitle
		{
			set{ _newstitle=value;}
			get{return _newstitle;}
		}
		/// <summary>
        /// 新闻内容
		/// </summary>
		public string NewsContent
		{
			set{ _newscontent=value;}
			get{return _newscontent;}
		}
		/// <summary>
        /// 新闻类型，外键
		/// </summary>
		public int TypeId
		{
			set{ _typeid=value;}
			get{return _typeid;}
		}
		/// <summary>
        /// 是否置顶
		/// </summary>
		public bool IsTop
		{
			set{ _istop=value;}
			get{return _istop;}
		}
		/// <summary>
        /// 是否推荐
		/// </summary>
		public bool IsCommend
		{
			set{ _iscommend=value;}
			get{return _iscommend;}
		}
		/// <summary>
        /// 浏览次数
		/// </summary>
		public int Hits
		{
			set{ _hits=value;}
			get{return _hits;}
		}
		/// <summary>
        /// 发布日期
		/// </summary>
		public DateTime NewsDate
		{
			set{ _newsdate=value;}
			get{return _newsdate;}
		}
		/// <summary>
		/// 发布人，外键关联员工编号
		/// </summary>
		public string StfCode
		{
			set{ _stfcode=value;}
			get{return _stfcode;}
		}
		#endregion Model

	}
}

